package com.example.demo1108.demo4;

public class Pater implements Voltage{
    private Voltage220 voltage220;

        public  Pater(Voltage220 voltage220){
            this.voltage220=voltage220;
        }
    @Override
    public int voltage() {
        int i=this.voltage220.getVoltage();
        return (i/20);
    }
}
